-- GENERATED SPELL FOR [Moonstalker Matriarch] --


function spell0_2071(pUnit, Event) --@Summon Moonstalker Runt,Self--
pUnit:FullCastSpellOnTarget(8594,pUnit)
pUnit:RegisterEvent('Sorts_2071', 566, 1)
end

function Sorts_2071(pUnit, Event)
local choix_sorts_2071 = math.random(0, 0)
if choix_sorts_2071 == 0 then
pUnit:RegisterEvent('spell0_2071', 1, 1)
end
end

function mob2071_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2071', math.random(1500, 3000), 1)
end

function mob2071_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2071_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2071_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2071, 1, 'mob2071_Action')
RegisterUnitEvent(2071, 2, 'mob2071_Leave')
RegisterUnitEvent(2071, 3, 'mob2071_Kill')
RegisterUnitEvent(2071, 4, 'mob2071_Die')
